import http from "@/http";
import { Major, MajorPage } from "./MajorModel";
//新增
export const addApi = (parm:Major)=>{
    return http.post("/api/major",parm)
}
//列表
export const getListApi = (parm:MajorPage)=>{
    return http.get("/api/major/list",parm)
}
//编辑
export const editApi = (parm:Major)=>{
    return http.put("/api/major",parm)
}
//删除
export const deleteApi = (majorId:string)=>{
    return http.delete(`/api/major/${majorId}`)
}
//专业下拉数据
export const selectApi = ()=>{
    return http.get("/api/major/select")
}